//
//  CYProjectDetail_LikeCollectionViewCell.m
//  cyydt
//
//  Created by chu on 2019/1/24.
//  Copyright © 2019 chu. All rights reserved.
//

#import "CYProjectDetail_LikeCollectionViewCell.h"

@implementation CYProjectDetail_LikeCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(CYProjectModel *)model{
    _model = model;
    
    [self.headImageView sd_setImageWithURL:[NSURL URLWithString:model.logo_item] placeholderImage:[UIImage imageWithColor:[UIColor lightGrayColor] Size:self.headImageView.frame.size]];
    self.titleLabel.text = model.brand;
    
    if ([model.funds isEqualToString:@"0"]) {
        self.moneyLabel.text = @"全部";
    }else if ([model.funds isEqualToString:@"10"]){
        self.moneyLabel.text = @"3万以下";
    }else if ([model.funds isEqualToString:@"15"]){
        self.moneyLabel.text = @"3-8万";
    }else if ([model.funds isEqualToString:@"5"]){
        self.moneyLabel.text = @"5-10万";
    }else if ([model.funds isEqualToString:@"6"]){
        self.moneyLabel.text = @"10-20万";
    }else if ([model.funds isEqualToString:@"11"]){
        self.moneyLabel.text = @"20万以上";
    }
}

@end
